﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;

namespace My.Pattern.Builder
{
    /// <summary>
    /// The interface which defines the method list to automatically map from Source to Destination class
    /// </summary>
    public interface IAutoMapperBuilder
    {
        D MapSourceToDestination<S, D>(S source)
            where S : class
            where D : class, new();

        D MapSourceToDestination<S, D>(S source, Action<ConfigurationStore> function)
            where S : class
            where D : class, new();

        D MapSourceToDestination<S, D>(S source, Action<ConfigurationStore> function, D destination)
            where S : class
            where D : class;
    }
}
